package com.linwen.javase.desgin_pattern.structure.proxy.cjlib;

import com.linwen.javase.desgin_pattern.structure.proxy.Boss;

/**
 * @ClassName TestCJLibProxy
 * @Description
 * @Author lin
 * @Date 2022/4/13 下午10:48
 * @Version V1.0
 */
public class  TestCJLibProxy {
    public static void main(String[] args) {
        CJLibProxy cJlibProxy = new CJLibProxy();
        // 生成真实对象的子类
        Boss boss = (Boss)cJlibProxy.getInstance(new Boss());
        boss.rent();
    }
}
